package com.hualan.sfzyproject.mapper;

import com.hualan.sfzyproject.domain.CourseReviews;
import com.hualan.sfzyproject.domain.CourseTypes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author LUCK
* @description 针对表【course_reviews】的数据库操作Mapper
* @createDate 2025-01-02 16:01:40
* @Entity com.hualan.sfzyproject.domain.CourseReviews
*/
@Mapper
public interface CourseReviewsMapper {


    int insert(CourseReviews record);
    int deleteByPrimaryKey(Long id);
    int updateByPrimaryKey(CourseReviews record);
    // 模糊查询
    List<CourseReviews> searchCourseReviews(String keyword);
    // 批量删除
    int batchDelete(List<Long> ids);

    CourseReviews selectByPrimaryKey(Long id);
    int insertSelective(CourseReviews record);

    int updateByPrimaryKeySelective(CourseReviews record);

    //课程评价
    @Select("select * from course_reviews ")
    List<CourseReviews> findReviews();

}
